/**
 * 用户相关的接口
 */
import request from '@/utils/request'

// 用户登录
export const login = data => {
    return request({
        method: 'POST',
        data: data,
        url: '/mp/v1_0/authorizations'
    })
}

// 获取用户信息
export const getUserProfile = () => {
    return request({
        method: 'GET',
        url: '/mp/v1_0/user/profile'
    })
}